package com.atguigu.gmall.product;

import com.atguigu.gmall.common.handler.GlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

/**
 * @author 钟涛
 * @version 1.0
 * @description: TODO
 * @date 2021/12/6 14:26
 */
@SpringCloudApplication
@Import(GlobalExceptionHandler.class)
public class ProductMainApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ProductMainApplication.class, args);
//        String[] beanDefinitionNames = run.getBeanDefinitionNames();
//        for (String beanDefinitionName : beanDefinitionNames) {
//            System.out.println(beanDefinitionName);
//        }
    }
}
